//
//  ProgressViewController.m
//  Components
//
//  Created by  on 6/18/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "ProgressViewController.h"

@interface ProgressViewController ()

@end

@implementation ProgressViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    UIProgressView * myProgress = [[[UIProgressView alloc]initWithFrame:CGRectMake(0,[UIScreen mainScreen].bounds.size.height/2-40,[UIScreen mainScreen].bounds.size.width,30) ]autorelease];
    [self.view addSubview:myProgress];
    myProgress.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleBottomMargin;
    self.title = @"Progress View";
    myProgress.progress = 0.5f;
    }

- (void)viewDidUnload
{
    [super viewDidUnload];

    
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return YES;
}

@end
